package com.java.control.search;

/**
 * 供应商管理
 * @author wqf
 * @version  Nov 24, 2011 11:55:45 AM
 */
public class SupplierSearchCond extends SearchCond{
	
	private String companyName;
	

	public ConditionPart getCondition(){
		ConditionPart cp=new ConditionPart();
		StringBuffer searchStr=new StringBuffer(" 1=1");
		
		if(null!=companyName){
			searchStr.append(" and companyName like ?");
			cp.getParams().add("%"+companyName+"%");
		}
		
		cp.setExpression(searchStr.toString());
		return cp;
	}


	public String getCompanyName() {
		return companyName;
	}


	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}


}
